export const routes = [
  {
    path: '/',
    redirect: '/login',
  },
  {
    path: '/open',
    component: '@/pages/open'
  },
  {
    path: '/open-title',
    component: '@/pages/OpenTitle'
  },
  {
    path: '/open-bg',
    component: '@/pages/openBg'
  },
  {
    exact: true,
    path: '/login',
    component: '@/pages/login/index',
    title: '登录',
    warppers: ['@/wrappers/auth'],
  },
  {
    component: '@/layouts/BasicLayout',
    wrappers: ['@/wrappers/auth'],
    routes: [
      {
        exact: true,
        path: '/dashboard',
        component: '@/pages/dashboard/index',
        title: '首页',
      },
      {
        exact: true,
        path: '/user',
        component: '@/pages/user/index',
        title: '用户',
      },
      {
        exact: true,
        path: '/report',
        component: '@/pages/report/index',
        title: '日报',
      },
      {
        exact: true,
        path: '/report/write',
        component: '@/pages/report/write/index',
        title: '写日报',
      },
      {
        exact: true,
        path: '/report/write/:id',
        component: '@/pages/report/write/index',
        title: '写日报',
      },
      {
        exact: true,
        path: '/dynamic',
        component: '@/pages/dynamic/index',
        title: '动态组件',
      },
      {
        exact: true,
        path: '/test',
        component: '@/pages/test/index3',
        title: '测试组件',
      },
      {
        path: '/test/details',
        component: '@/pages/test/details',
        title: '测试详情',
      },
      {
        exact: true,
        path: '/mobx',
        component: '@/pages/mobx/index',
        title: 'mobx',
      },
      {
        exact: true,
        path: '/tabanchor',
        component: '@/pages/tabAnchor/index',
        title: 'tab-anchor',
      },
      {
        exact: true,
        path: '/table',
        component: '@/pages/table/index',
        title: 'table',
      },
      { path: '*', redirect: '/404' },
    ],
  },
];
